<?php

namespace app\api\validate;
use \think\Validate;

/**
 *  矿机视频验证类
 */
class MinerVideo extends Validate
{
    protected $rule = [
        'id' => 'require|number',
        'page' => 'require|number',
        'pageSize' => 'require|number'
    ];


    //定义验证提示
    protected $message = [
        'id.require' => 'common.idRequire',
        'id.number' => 'common.idNumber',
        'page.require' => 'common.pageRequire',
        'page.number' => 'common.pageNumber',
        'pageSize.require' => 'common.listRowsRequire',
        'pageSize.number' => 'common.listRowsNumber'
    ];

    //定义验证场景
    protected $scene = [
        'list' => ['page','pageSize'],
        'detail' => ['id']
    ];
}
